#ifndef COMMODITYDELEGATE_H
#define COMMODITYDELEGATE_H

#include <QStyledItemDelegate>

class CommodityDelegate : public QStyledItemDelegate
{
    Q_OBJECT
public:
    explicit CommodityDelegate(QObject *parent = 0) : QStyledItemDelegate(parent) {}

    virtual QWidget *	createEditor(QWidget * parent, const QStyleOptionViewItem & option, const QModelIndex & index) const;
//    virtual void	paint(QPainter * painter, const QStyleOptionViewItem & option, const QModelIndex & index) const;
    virtual void	setEditorData(QWidget * editor, const QModelIndex & index) const;
    virtual void	setModelData(QWidget * editor, QAbstractItemModel * model, const QModelIndex & index) const;
//    virtual QSize	sizeHint(const QStyleOptionViewItem & option, const QModelIndex & index) const;
//    virtual void	updateEditorGeometry(QWidget * editor, const QStyleOptionViewItem & option, const QModelIndex & index) const;


signals:

public slots:

};

#endif // COMMODITYDELEGATE_H
